#include "GameMain.h"


static GameSoundManager *gameSound;
GameSoundManager *GameSoundManager::sharedGameSound()
{
	if(! gameSound)
	{
		gameSound = new GameSoundManager();
	}
	return gameSound;
}

void GameSoundManager::addEffect(char *url)
{
	//SimpleAudioEngine::sharedEngine()->preloadEffect(CCFileUtils::fullPathFromRelativeFile(url));
	//SimpleAudioEngine::sharedEngine()->playEffect(std::string(CCFileUtils::fullPathFromRelativeFile(url)).c_str());
}
void GameSoundManager::addBgSound(char *url)
{
	//SimpleAudioEngine::sharedEngine()->preloadBackgroundMusic(CCFileUtils::fullPathFromRelativeFile(url));
	//SimpleAudioEngine::sharedEngine()->playBackgroundMusic(std::string(CCFileUtils::fullPathFromRelativeFile(url)).c_str(),true);
}
void GameSoundManager::pauseEffect()
{

}
void GameSoundManager::pauseAll()
{
	SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
	SimpleAudioEngine::sharedEngine()->pauseAllEffects();
}